package config

import "github.com/spf13/viper"

type AppConfig struct {
	MySQLConfig
}

type MySQLConfig struct {
	User    string
	Pass    string
	Host    string
	Port    int
	MysqlDb string
}

var AppConf AppConfig

func InitViper() {
	viper.SetConfigFile("./config/dev.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&AppConf)
}
